problem with cases